/**
 * These are the standard CSS styles for core Streamwork features.
 * Intended to be reusable by other Streamwork-style applications.
 * 
 * I'm using camelcase naming for styles since that gives the best behaviour for
 * double-click select - making it less error prone to copy & paste.
 */

body {
    font-family: Arial,Helvetica,sans-serif;
} 

form {
    margin: 0;
    padding: 0;
}

/* Default styles for hyperlinks */
a {
    text-decoration: none;
    color: #3689C9;
}
a:focus, a:active {
    outline-style: none;
}
a:hover {
    text-decoration: underline;
}
 
/* Styles for the application main bar */
#swTopHeaderSpacer {
    height: 50px; /* This height needs to be in sync with #swTopHeader */
    border-bottom: 1px solid #FFF;
}
#swTopHeader {
    position: fixed;
    z-index: 1000;
    margin: 0;
    padding: 0;
    height: 46px;
    width: 100%;
    min-width: 1000px;
    -moz-box-shadow: inset 0 0 4px 1px #000;
    -webkit-box-shadow: inset 0 0 4px 1px #000;
    box-shadow: inset 0 0 4px 1px #000;
    border-bottom: 4px solid #727272;
    background-color: #2C2C2C;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    line-height: 26px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}
#swMainLogo {
    background-image: url(/images/constellation/nav_bar_sprites.png);
    background-position: -20px -8px;
    background-repeat: no-repeat;
    float: left;
    display: block;    
    height: 40px;
    width: 165px;
    margin: 10px 0 0 22px;
}

#swTopHeader a {
    text-decoration: none;
}

/* NAV ITEMS */
#swTopNavItems {
    margin: 11px auto 0 auto;
    padding: 0 320px 0 190px;
    text-align: center;
}

#swTopNavItems a {
    position: relative;
    text-align: center;
    color: #FFF;
    text-shadow: 0 1px 2px #000;
    padding: 3px 7px 4px;
    margin: 0 1px;
    border: 1px solid transparent;
    border-radius: 16px;
    -moz-border-radius: 16px;
}

#swTopNavItems a:hover, #swTopNavItems a:active {
    border: 1px solid #5A5A5A;
    background-color: #111;
    box-shadow: inset 0 1px 1px 1px #000;
    -webkit-box-shadow: inset 0 1px 1px 1px #000;
    -moz-box-shadow: inset 0 1px 1px 1px #000;
}

#swTopNavItems a.swTopNavCurrent {
    background-color: #111;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-top: 1px solid #000;
    border-bottom: 1px solid #5A5A5A;
    box-shadow: inset 0 0 1px 1px #000;
    -webkit-box-shadow: inset 0 0 1px 1px #000;
    -moz-box-shadow: inset 0 0 1px 1px #000;
}

/* SEARCH */
#swTopNavSearch {
    position: absolute;
    right: 24px;
    top: 11px;
}

#swTopNavSearch input {
    background-color: #111;
    background-image: url("/images/constellation/nav_bar_sprites.png");
    background-repeat: no-repeat;
    background-position: -101px -381px;
    color: #CCC;
    padding: 4px 10px 4px 27px;
    border: none;
    border-top: 1px solid #000;
    border-bottom: 1px solid #5A5A5A;
    border-radius: 16px;
    -moz-border-radius: 16px;
    box-shadow: inset 0 0 1px 1px #000;
    -webkit-box-shadow: inset 0 0 1px 1px #000;
    -moz-box-shadow: inset 0 0 1px 1px #000;
    font-style: italic;
    font-size: 11px;
    margin: 0;
    width: 115px;
}

#swTopNavSearch input:focus {
    outline: none;
}

/* a class added to an input control for the style of helper text (see Search box) */
input[type="file"].swInputPlaceholder,
input[type="text"].swInputPlaceholder,
input[type="password"].swInputPlaceholder,
input[type="email"].swInputPlaceholder,
input[type="url"].swInputPlaceholder,
textarea.swInputPlaceholder {
    font-style: italic;
    color: #999999;
}
/* this is the HTML5 placeholder attribute */
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    font-style: italic;
    color: #999999;
}
input:-moz-placeholder, textarea:-moz-placeholder {
    font-style: italic !important;
    color: #999999 !important;
}

/* style for the tabs to choose a view (see user profile tabs) */
.viewTabsContainer {
    border-bottom-color: #555555;
    border-bottom-style: solid;
    border-bottom-width: 3px;
    font-size: 0;
    position: relative;
}

.viewTab {
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    zoom: 1;
    *display: inline;
    padding: 8px 15px 6px;
    height: 16px;
    overflow: hidden;
    margin-right: 1px; /* space between tabs */
    background-color: #F0F0F0;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    -webkit-border-radius: 4px 4px 0 0;
    color: #777;
    text-shadow: 0px 1px 0px rgba(255, 255, 255, 1);
}

.viewTab.selected {
    background-color: #555 !important;
    text-shadow: 0px 1px 0px rgba(0, 0, 0, 1);
    color: #FFF;
    cursor: default !important;
}

.viewTab:hover {
    background-color: #E1E1E1;
}

.viewTab .tabText {
    display: inline;
}


/*
Tab styles
// TODO: see if these should be merged with viewTab
*/
.swTabBar {
    font-size: 0px; /* prevent space between inline elements */
    border-bottom: 3px solid #555;
    position: relative;
}

.swTab {
    font-size: 13px;
    display: inline-block;
    zoom: 1;
    *display: inline;
    padding: 8px 15px 6px;
    height: 16px;
    overflow: hidden;
    margin-right: 1px; /* space between tabs */
    background-color: #F0F0F0;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    -webkit-border-radius: 4px 4px 0 0;
    color: #555;
}

.swTab.selected, .swTab.selected:hover {
    background-color: #555;
    background-image: none;
    color: white;
    font-weight: bold;
    cursor: default;
	text-shadow: 0px 1px 0px #222;
}

.swTab:hover {
    background-color: #E1E1E1;
}